/*
 * Test.java - Copyright May 5, 2012 Z Networks Group, Inc. All rights reserved.
 * Z Networks Group PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.andromeda.skadi.entity.edit;

import com.andromeda.skadi.entity.DataService;

/**
 *
 * @author Dickinson Roman Arismendy Torres
 */
public class Test {
    public static void main(String[] args) {
        DataService dataService = new DataService();
        EditSession edition = dataService.edit();
        AttributeEdition attribute = edition.attributeModel("name");
        attribute.value().set("Nuevo nombre");
        System.out.println(attribute.value().get());
        edition.setAttributeValue("name", "Nuevo nombre 2");
        System.out.println(attribute.value().get());
        attribute.undo();
        System.out.println(attribute.value().get());
        attribute.undo();
        System.out.println(attribute.value().get());
        edition.commit();
    }
}
